home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
vol_300
/
361_01
/
dread.c
< prev
next >
Wrap
C/C++ Source or Header
|
1991-09-18
|
566b
|
26 lines
/* Dread.c --> Direct Video CRT Reads in Text Mode.
*
* Author: J.Ekwall 13 September 91
*
* Copyrighted to the Public Domain. Unlimited Distribution Authorized.
*
* User Assumes All Risks/Liabilities.
*
* Last Update: 13 September 91/EK
*/
#include <stdlib.h>
#include <stdek.h>
#include <gadgets.h>
void Dread(int X, int Y, char *Text, int N)
{
int Addr;
Addr = Vaddr(X, Y);
for (*Text = NULL; N-- && X++ < 80; *Text = NULL, Addr += 2)
*Text++ = Vpeek(Addr) & 0xFF;
}